//
//  NSString+Extension.h
//  megawave
//
//  Created by houzhen on 2017/8/24.
//  Copyright © 2017年 multway. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSString (Extension)

+(NSString *)stringFromDate:(NSDate *)date;
+(NSDate *)dateFromString:(NSString *)dateString;


+(instancetype)getPathWith:(NSString *)path;
+(NSMutableArray *)getArrayWithPlistPath:(NSString *)path;
+(NSString *)getTheTimeGreeting;


- (NSString *)trainURLEncodedString;
+(NSString *)getSexIDCardNumber:(NSString *)num;
+(NSString *)getAgeIDCardNumber:(NSString *)num;

+(BOOL)valiMobile:(NSString *)mobile;

- (NSString *)formatFloat:(float)f;

@end
